package com.bestcem.xm.qdes.controller.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * @author xiaoshu.shao
 * @version V1.0
 * @date 2022/9/13
 * @desc 添加项目协作者请求参数
 */
@Data
public class ShareUserParam {
    @ApiModelProperty(value = "协作者参数列表")
    private List<Projects> projects;

    @Data
    public static class Projects {
        @ApiModelProperty(value = "用户名称")
        private String name;

        @ApiModelProperty(value = "用户ID")
        @JsonProperty("user_id")
        private String userId;

        /**
         * 项目权限列表
         */
        @JsonProperty(value = "permissions")
        private List<String> permissionsArray;

        @ApiModelProperty(value = "创建者名称")
        private String creator;

        @ApiModelProperty(value = "用户邮箱")
        private String email;

        @ApiModelProperty(value = "创建者创建时间")
        @JsonProperty("created_dt")
        private String createdDt;

        @ApiModelProperty(value = "权限类型")
        private Integer ttype;

        @ApiModelProperty(value = "")
        private Boolean show;
    }
}


